//
//  TextField.m
//  2016-06-06界面
//
//  Created by Roach on 16/6/6.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "TextField.h"

@implementation TextField
- (instancetype) initWithFrame:(CGRect)frame withPlaceholder:(NSString *)placeholder{
    self = [super initWithFrame:frame];
    if (self) {
        self.placeholder = placeholder;
        [self setTextField];
    }
    return self;
}
// 边框 对齐位置 return
-(void) setTextField {
    
    self.borderStyle = UITextBorderStyleRoundedRect;
    self.textAlignment = NSTextAlignmentCenter;
    self.returnKeyType =UIReturnKeyDone;
    self.keyboardType = UIKeyboardTypeAlphabet;
    
    
}
// 密文
- (void)setTextFieldOther {
    
    self.secureTextEntry = YES;
    
}

@end
